<?php
$number = $_POST['number'];
echo $number
$foo = "3.123";
$bar = (float) $foo;
echo $bar
?>